﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 实验3_MDI窗口的使用
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void form1or2ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form2 frm2 = new Form2((ToolStripMenuItem)sender);
            frm2.Text = ((ToolStripMenuItem)sender).Text;
            frm2.MdiParent = this;
            frm2.Show();
        }

        private void form2ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
    }
}
